<html>
  <head><title>bug9119</title></head>
  <body>
    <a href="javascript:alert('test');">foo#bar</a>
  </body>
</html>
